<?php
class indexAction extends rareAction{
	public function	execute(){
		//获取分类的类型(product,news)
		$type = $this->getGetParam('type',0);
		$this->assign('type',$type);
		$topCate = service_category::getTopCate($type);
		$cates = service_category::getAll($type);
		$this->assign('topCate',$topCate);
		$this->assign('cates',$cates);
		if(Tool::_getCache('isAdmin')){
			if($type == service_type::PRODUCT){
				Tool::_setCache('current','product');
			}elseif($type == service_type::NEWS){
				Tool::_setCache('current','news');
			}
		}else{
			Tool::_setCache('currentID',service_menu::getCurrent('1',$type));
		}
	}
}
?>
